import java.util.Scanner;

public class Demo05 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int a=scanner.nextInt();
        int b=scanner.nextInt();
        if(b%a==0){
            System.out.println("a");
        }else{
            System.out.println(1);
        }
    }
}
